package cn.yyh.servicePay.client;

import cn.yyh.commons.utils.R;
import cn.yyh.servicePay.domain.AdoptOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: AdoptOrderClient
 * @Package: cn.yyh.servicePay.client
 * @date 2021/7/10
 */
@FeignClient(name = "service-order")
@Component
public interface AdoptOrderClient {
    @PutMapping("/serviceOrder/adoptOrder/update")
    void update(@RequestBody AdoptOrder adoptOrder);

    @GetMapping("/serviceOrder/adoptOrder/getById/{id}")
    String getById(@PathVariable Long id);
}
